package leetcode.code0122;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution122 implements IDebug {

	public abstract int maxProfit(int[] prices);

	@Override
	public void debug1() {
		int r = this.maxProfit(HelpDebug.str2array3("[7,1,5,3,6,4]"));
		int e = 7;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.maxProfit(HelpDebug.str2array3("[1,2,3,4,5]"));
		int e = 4;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int r = this.maxProfit(HelpDebug.str2array3("[7,6,4,3,1]"));
		int e = 0;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		int r = this.maxProfit(HelpDebug.str2array3("[1,2,1,2,1,2]"));
		int e = 3;
		HelpDebug.compare(e, r);
	}

}
